<!DOCTYPE html>
<html lang=en>
<head>
    <!-- so meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="HandheldFriendly" content="True">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <meta name="description" content="docker &#x2F; linux &#x2F; 清华docker &#x2F; 安装docker docker 17.03.1安装指南 2017 04 05 美国原版 默认源 没有问题 sudo apt install curl   sudo curl -sSL https:&#x2F;&#x2F;get.docker.com&#x2F; | sudo sh  清华 centos yum 镜像 https:&#x2F;&#x2F;mirrors.tuna.tsinghu">
<meta property="og:type" content="article">
<meta property="og:title" content="docker17.06.2-ce安装指南">
<meta property="og:url" content="http://yoursite.com/2013/10/22/docker17.06.2-ce%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97/index.html">
<meta property="og:site_name" content="TmoonSite">
<meta property="og:description" content="docker &#x2F; linux &#x2F; 清华docker &#x2F; 安装docker docker 17.03.1安装指南 2017 04 05 美国原版 默认源 没有问题 sudo apt install curl   sudo curl -sSL https:&#x2F;&#x2F;get.docker.com&#x2F; | sudo sh  清华 centos yum 镜像 https:&#x2F;&#x2F;mirrors.tuna.tsinghu">
<meta property="og:locale" content="en_US">
<meta property="article:published_time" content="2013-10-22T06:39:12.000Z">
<meta property="article:modified_time" content="2020-01-07T10:48:15.032Z">
<meta property="article:author" content="Tmoonlight">
<meta name="twitter:card" content="summary">
    
    
        
          
              <link rel="shortcut icon" href="/images/favicon.ico">
          
        
        
          
            <link rel="icon" type="image/png" href="/images/logo2.gif" sizes="192x192">
          
        
        
          
            <link rel="apple-touch-icon" sizes="180x180" href="/images/logo2.gif">
          
        
    
    <!-- title -->
    <title>docker17.06.2-ce安装指南</title>
    <!-- styles -->
    
<link rel="stylesheet" href="/css/style.css">

    <!-- persian styles -->
    
      
<link rel="stylesheet" href="/css/rtl.css">

    
    <!-- rss -->
    
    
<meta name="generator" content="Hexo 4.2.0"></head>

<body class="max-width mx-auto px3 ltr">
    
      <div id="header-post">
  <a id="menu-icon" href="#"><i class="fas fa-bars fa-lg"></i></a>
  <a id="menu-icon-tablet" href="#"><i class="fas fa-bars fa-lg"></i></a>
  <a id="top-icon-tablet" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');" style="display:none;"><i class="fas fa-chevron-up fa-lg"></i></a>
  <span id="menu">
    <span id="nav">
      <ul>
         
          <li><a href="/">Home</a></li>
         
          <li><a href="/about/">About</a></li>
         
          <li><a href="/archives/">Writing</a></li>
         
          <li><a href="/projects_url">Projects</a></li>
        
      </ul>
    </span>
    <br/>
    <span id="actions">
      <ul>
        
        <li><a class="icon" href="/2013/10/26/ArrayPool%E6%B1%A0%E5%8C%96/"><i class="fas fa-chevron-left" aria-hidden="true" onmouseover="$('#i-prev').toggle();" onmouseout="$('#i-prev').toggle();"></i></a></li>
        
        
        <li><a class="icon" href="/2013/09/19/%E5%88%86%E4%BA%AB%E5%87%A0%E7%AF%87%E5%AD%A6%E4%B9%A0%E5%B8%A7%E5%90%8C%E6%AD%A5%E3%80%81%E7%8A%B6%E6%80%81%E5%90%8C%E6%AD%A5%E7%9B%B8%E5%85%B3%E7%9F%A5%E8%AF%86%E7%82%B9%E7%9A%84%E6%96%87%E7%AB%A0-%E5%B0%8F5_%E5%B0%8F%E6%AD%A6%E5%90%9B-%E7%AE%80%E4%B9%A6/"><i class="fas fa-chevron-right" aria-hidden="true" onmouseover="$('#i-next').toggle();" onmouseout="$('#i-next').toggle();"></i></a></li>
        
        <li><a class="icon" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');"><i class="fas fa-chevron-up" aria-hidden="true" onmouseover="$('#i-top').toggle();" onmouseout="$('#i-top').toggle();"></i></a></li>
        <li><a class="icon" href="#"><i class="fas fa-share-alt" aria-hidden="true" onmouseover="$('#i-share').toggle();" onmouseout="$('#i-share').toggle();" onclick="$('#share').toggle();return false;"></i></a></li>
      </ul>
      <span id="i-prev" class="info" style="display:none;">Previous post</span>
      <span id="i-next" class="info" style="display:none;">Next post</span>
      <span id="i-top" class="info" style="display:none;">Back to top</span>
      <span id="i-share" class="info" style="display:none;">Share post</span>
    </span>
    <br/>
    <div id="share" style="display: none">
      <ul>
  <li><a class="icon" href="http://www.facebook.com/sharer.php?u=http://yoursite.com/2013/10/22/docker17.06.2-ce%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97/" target="_blank" rel="noopener"><i class="fab fa-facebook " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://twitter.com/share?url=http://yoursite.com/2013/10/22/docker17.06.2-ce%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97/&text=docker17.06.2-ce安装指南" target="_blank" rel="noopener"><i class="fab fa-twitter " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.linkedin.com/shareArticle?url=http://yoursite.com/2013/10/22/docker17.06.2-ce%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97/&title=docker17.06.2-ce安装指南" target="_blank" rel="noopener"><i class="fab fa-linkedin " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://pinterest.com/pin/create/bookmarklet/?url=http://yoursite.com/2013/10/22/docker17.06.2-ce%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97/&is_video=false&description=docker17.06.2-ce安装指南" target="_blank" rel="noopener"><i class="fab fa-pinterest " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="mailto:?subject=docker17.06.2-ce安装指南&body=Check out this article: http://yoursite.com/2013/10/22/docker17.06.2-ce%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97/"><i class="fas fa-envelope " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://getpocket.com/save?url=http://yoursite.com/2013/10/22/docker17.06.2-ce%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97/&title=docker17.06.2-ce安装指南" target="_blank" rel="noopener"><i class="fab fa-get-pocket " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://reddit.com/submit?url=http://yoursite.com/2013/10/22/docker17.06.2-ce%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97/&title=docker17.06.2-ce安装指南" target="_blank" rel="noopener"><i class="fab fa-reddit " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.stumbleupon.com/submit?url=http://yoursite.com/2013/10/22/docker17.06.2-ce%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97/&title=docker17.06.2-ce安装指南" target="_blank" rel="noopener"><i class="fab fa-stumbleupon " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://digg.com/submit?url=http://yoursite.com/2013/10/22/docker17.06.2-ce%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97/&title=docker17.06.2-ce安装指南" target="_blank" rel="noopener"><i class="fab fa-digg " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.tumblr.com/share/link?url=http://yoursite.com/2013/10/22/docker17.06.2-ce%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97/&name=docker17.06.2-ce安装指南&description=" target="_blank" rel="noopener"><i class="fab fa-tumblr " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://news.ycombinator.com/submitlink?u=http://yoursite.com/2013/10/22/docker17.06.2-ce%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97/&t=docker17.06.2-ce安装指南" target="_blank" rel="noopener"><i class="fab fa-hacker-news " aria-hidden="true"></i></a></li>
</ul>

    </div>
    <div id="toc">
      <ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#查看内核版本及架构"><span class="toc-number">1.</span> <span class="toc-text">查看内核版本及架构</span></a></li><li class="toc-item toc-level-1"><a class="toc-link" href="#查看-debian-版本"><span class="toc-number">2.</span> <span class="toc-text">查看 debian 版本</span></a></li><li class="toc-item toc-level-1"><a class="toc-link" href="#deb包地址-：https-download-docker-com-linux-debian-dists-然后选对应-debian-版本的-pool-stable-文件下的-对应-架构下下载-deb-包-我的-debian-版本是-jessie-，架构是-armv71"><span class="toc-number">3.</span> <span class="toc-text">deb包地址 ：https:&#x2F;&#x2F;download.docker.com&#x2F;linux&#x2F;debian&#x2F;dists&#x2F;# 然后选对应 debian 版本的　&#x2F;pool&#x2F;stable 文件下的 对应 架构下下载 deb 包# 我的 debian 版本是 jessie ，架构是 armv71</span></a></li><li class="toc-item toc-level-1"><a class="toc-link" href="#下载-版本随便挑"><span class="toc-number">4.</span> <span class="toc-text">下载 (版本随便挑)</span></a></li><li class="toc-item toc-level-1"><a class="toc-link" href="#dpkg-安装"><span class="toc-number">5.</span> <span class="toc-text">dpkg 安装</span></a></li><li class="toc-item toc-level-1"><a class="toc-link" href="#验证安装"><span class="toc-number">6.</span> <span class="toc-text">验证安装</span></a></li></ol>
    </div>
  </span>
</div>

    
    <div class="content index py4">
        
        <article class="post" itemscope itemtype="http://schema.org/BlogPosting">
  <header>
    
    <h1 class="posttitle" itemprop="name headline">
        docker17.06.2-ce安装指南
    </h1>



    <div class="meta">
      <span class="author" itemprop="author" itemscope itemtype="http://schema.org/Person">
        <span itemprop="name">TmoonSite</span>
      </span>
      
    <div class="postdate">
      
        <time datetime="2013-10-22T06:39:12.000Z" itemprop="datePublished">2013-10-22</time>
        
      
    </div>


      

      

    </div>
  </header>
  

  <div class="content" itemprop="articleBody">
    <p><a href="http://so.csdn.net/so/search/s.do?q=docker&t=blog" target="_blank" rel="noopener">docker</a> /</p>
<p><a href="http://so.csdn.net/so/search/s.do?q=linux&t=blog" target="_blank" rel="noopener">linux</a> /</p>
<p><a href="http://so.csdn.net/so/search/s.do?q=%E6%B8%85%E5%8D%8Edocker&t=blog" target="_blank" rel="noopener">清华docker</a> /</p>
<p><a href="http://so.csdn.net/so/search/s.do?q=%E5%AE%89%E8%A3%85docker&t=blog" target="_blank" rel="noopener">安装docker</a></p>
<p>docker 17.03.1安装指南</p>
<p>2017 04 05</p>
<p>美国原版 默认源 没有问题</p>
<p>sudo apt install curl </p>
<p> sudo curl -sSL <a href="https://get.docker.com/" target="_blank" rel="noopener">https://get.docker.com/</a> | sudo sh </p>
<p>清华 centos yum 镜像</p>
<p><a href="https://mirrors.tuna.tsinghua.edu.cn/help/centos/" target="_blank" rel="noopener">https://mirrors.tuna.tsinghua.edu.cn/help/centos/</a></p>
<p>清华 docker-ce</p>
<p><a href="https://mirrors.tuna.tsinghua.edu.cn/help/docker-ce/" target="_blank" rel="noopener">https://mirrors.tuna.tsinghua.edu.cn/help/docker-ce/</a></p>
<p>如果你之前安装过 docker，请先删掉</p>
<p>sudo yum remove docker docker-common docker-selinux docker-engine</p>
<p>安装一些依赖</p>
<p>sudo yum install -y yum-utils device-mapper-persistent-data lvm2</p>
<p>根据你的发行版下载repo文件: </p>
<p>wget -O /etc/yum.repos.d/docker-ce.repo <a href="https://download.docker.com/linux/centos/docker-ce.repo" target="_blank" rel="noopener">https://download.docker.com/linux/centos/docker-ce.repo</a></p>
<p>把软件仓库地址替换为 TUNA:</p>
<p>sudo sed -i ‘s+<a href="http://download.docker.com/" target="_blank" rel="noopener">download.docker.com</a>+<a href="http://mirrors.tuna.tsinghua.edu/" target="_blank" rel="noopener">mirrors.tuna.tsinghua.edu</a>.cn/docker-ce+’ /etc/yum.repos.d/docker-ce.repo</p>
<p>最后安装:</p>
<p>sudo yum makecache fast</p>
<p>sudo yum install docker-ce</p>
<p>17.06.2-ce</p>
<p>sudo usermod -aG docker your-user</p>
<p>centos 7.3 </p>
<p>2017-9-4</p>
<p> su root </p>
<p>curl -sSL <a href="http://get.docker.com/" target="_blank" rel="noopener">http://get.docker.com/</a>  | sh</p>
<p>usermod -aG docker root</p>
<p>service docker start</p>
<p>腾讯云 加速地址</p>
<p>curl -sSL <a href="https://get.daocloud.io/daotools/set_mirror.sh" target="_blank" rel="noopener">https://get.daocloud.io/daotools/set_mirror.sh</a> | sh -s <a href="http://mirror.ccs.tencentyun.com/" target="_blank" rel="noopener">http://mirror.ccs.tencentyun.com</a></p>
<p>service docker restart</p>
<p>chkconfig docker on</p>
<hr>
<p>debian+raspberrypi的按抓国内方法</p>
<h1 id="查看内核版本及架构"><a href="#查看内核版本及架构" class="headerlink" title="查看内核版本及架构"></a>查看内核版本及架构</h1><p>uname -ar</p>
<h1 id="查看-debian-版本"><a href="#查看-debian-版本" class="headerlink" title="查看 debian 版本"></a>查看 debian 版本</h1><p>lsb_release -cs</p>
<h1 id="deb包地址-：https-download-docker-com-linux-debian-dists-然后选对应-debian-版本的-pool-stable-文件下的-对应-架构下下载-deb-包-我的-debian-版本是-jessie-，架构是-armv71"><a href="#deb包地址-：https-download-docker-com-linux-debian-dists-然后选对应-debian-版本的-pool-stable-文件下的-对应-架构下下载-deb-包-我的-debian-版本是-jessie-，架构是-armv71" class="headerlink" title="deb包地址 ：https://download.docker.com/linux/debian/dists/# 然后选对应 debian 版本的　/pool/stable 文件下的 对应 架构下下载 deb 包# 我的 debian 版本是 jessie ，架构是 armv71"></a>deb包地址 ：<a href="https://download.docker.com/linux/debian/dists/" target="_blank" rel="noopener">https://download.docker.com/linux/debian/dists/</a># 然后选对应 debian 版本的　/pool/stable 文件下的 对应 架构下下载 deb 包# 我的 debian 版本是 jessie ，架构是 armv71</h1><p>所以选择 jessie/ -&gt; /pool/stable/ -&gt; armhf</p>
<h1 id="下载-版本随便挑"><a href="#下载-版本随便挑" class="headerlink" title="下载 (版本随便挑)"></a>下载 (版本随便挑)</h1><p>wget https://<a href="http://download.docker.com/linux/debian/dists/jessie/pool/stable/armhf/docker-ce_18.06.1~ce~3-0~debian_armhf.deb" target="_blank" rel="noopener">download.docker.com/linux/debian/dists/jessie/pool/stable/armhf/docker-ce_18.06.1<del>ce</del>3-0~debian_armhf.deb</a></p>
<h1 id="dpkg-安装"><a href="#dpkg-安装" class="headerlink" title="dpkg 安装"></a>dpkg 安装</h1><p>$ sudo dpkg -i /包地址/包.deb</p>
<h1 id="验证安装"><a href="#验证安装" class="headerlink" title="验证安装"></a>验证安装</h1><p>$ sudo docker run hello-world  </p>
<p>手动安装sdk  把可执行文件放到任意位置 使用 /usr/bin创建连接</p>

  </div>
</article>



        
          <div id="footer-post-container">
  <div id="footer-post">

    <div id="nav-footer" style="display: none">
      <ul>
         
          <li><a href="/">Home</a></li>
         
          <li><a href="/about/">About</a></li>
         
          <li><a href="/archives/">Writing</a></li>
         
          <li><a href="/projects_url">Projects</a></li>
        
      </ul>
    </div>

    <div id="toc-footer" style="display: none">
      <ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#查看内核版本及架构"><span class="toc-number">1.</span> <span class="toc-text">查看内核版本及架构</span></a></li><li class="toc-item toc-level-1"><a class="toc-link" href="#查看-debian-版本"><span class="toc-number">2.</span> <span class="toc-text">查看 debian 版本</span></a></li><li class="toc-item toc-level-1"><a class="toc-link" href="#deb包地址-：https-download-docker-com-linux-debian-dists-然后选对应-debian-版本的-pool-stable-文件下的-对应-架构下下载-deb-包-我的-debian-版本是-jessie-，架构是-armv71"><span class="toc-number">3.</span> <span class="toc-text">deb包地址 ：https:&#x2F;&#x2F;download.docker.com&#x2F;linux&#x2F;debian&#x2F;dists&#x2F;# 然后选对应 debian 版本的　&#x2F;pool&#x2F;stable 文件下的 对应 架构下下载 deb 包# 我的 debian 版本是 jessie ，架构是 armv71</span></a></li><li class="toc-item toc-level-1"><a class="toc-link" href="#下载-版本随便挑"><span class="toc-number">4.</span> <span class="toc-text">下载 (版本随便挑)</span></a></li><li class="toc-item toc-level-1"><a class="toc-link" href="#dpkg-安装"><span class="toc-number">5.</span> <span class="toc-text">dpkg 安装</span></a></li><li class="toc-item toc-level-1"><a class="toc-link" href="#验证安装"><span class="toc-number">6.</span> <span class="toc-text">验证安装</span></a></li></ol>
    </div>

    <div id="share-footer" style="display: none">
      <ul>
  <li><a class="icon" href="http://www.facebook.com/sharer.php?u=http://yoursite.com/2013/10/22/docker17.06.2-ce%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97/" target="_blank" rel="noopener"><i class="fab fa-facebook fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://twitter.com/share?url=http://yoursite.com/2013/10/22/docker17.06.2-ce%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97/&text=docker17.06.2-ce安装指南" target="_blank" rel="noopener"><i class="fab fa-twitter fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.linkedin.com/shareArticle?url=http://yoursite.com/2013/10/22/docker17.06.2-ce%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97/&title=docker17.06.2-ce安装指南" target="_blank" rel="noopener"><i class="fab fa-linkedin fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://pinterest.com/pin/create/bookmarklet/?url=http://yoursite.com/2013/10/22/docker17.06.2-ce%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97/&is_video=false&description=docker17.06.2-ce安装指南" target="_blank" rel="noopener"><i class="fab fa-pinterest fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="mailto:?subject=docker17.06.2-ce安装指南&body=Check out this article: http://yoursite.com/2013/10/22/docker17.06.2-ce%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97/"><i class="fas fa-envelope fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://getpocket.com/save?url=http://yoursite.com/2013/10/22/docker17.06.2-ce%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97/&title=docker17.06.2-ce安装指南" target="_blank" rel="noopener"><i class="fab fa-get-pocket fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://reddit.com/submit?url=http://yoursite.com/2013/10/22/docker17.06.2-ce%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97/&title=docker17.06.2-ce安装指南" target="_blank" rel="noopener"><i class="fab fa-reddit fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.stumbleupon.com/submit?url=http://yoursite.com/2013/10/22/docker17.06.2-ce%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97/&title=docker17.06.2-ce安装指南" target="_blank" rel="noopener"><i class="fab fa-stumbleupon fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://digg.com/submit?url=http://yoursite.com/2013/10/22/docker17.06.2-ce%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97/&title=docker17.06.2-ce安装指南" target="_blank" rel="noopener"><i class="fab fa-digg fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.tumblr.com/share/link?url=http://yoursite.com/2013/10/22/docker17.06.2-ce%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97/&name=docker17.06.2-ce安装指南&description=" target="_blank" rel="noopener"><i class="fab fa-tumblr fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://news.ycombinator.com/submitlink?u=http://yoursite.com/2013/10/22/docker17.06.2-ce%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97/&t=docker17.06.2-ce安装指南" target="_blank" rel="noopener"><i class="fab fa-hacker-news fa-lg" aria-hidden="true"></i></a></li>
</ul>

    </div>

    <div id="actions-footer">
        <a id="menu" class="icon" href="#" onclick="$('#nav-footer').toggle();return false;"><i class="fas fa-bars fa-lg" aria-hidden="true"></i> Menu</a>
        <a id="toc" class="icon" href="#" onclick="$('#toc-footer').toggle();return false;"><i class="fas fa-list fa-lg" aria-hidden="true"></i> TOC</a>
        <a id="share" class="icon" href="#" onclick="$('#share-footer').toggle();return false;"><i class="fas fa-share-alt fa-lg" aria-hidden="true"></i> Share</a>
        <a id="top" style="display:none" class="icon" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');"><i class="fas fa-chevron-up fa-lg" aria-hidden="true"></i> Top</a>
    </div>

  </div>
</div>

        
        <footer id="footer">
  <div class="footer-left">
    Copyright &copy; 2020 Tmoonlight
  </div>
  <div class="footer-right">
    <nav>
      <ul>
         
          <li><a href="/">Home</a></li>
         
          <li><a href="/about/">About</a></li>
         
          <li><a href="/archives/">Writing</a></li>
         
          <li><a href="/projects_url">Projects</a></li>
        
      </ul>
    </nav>
  </div>
</footer>

    </div>
    <!-- styles -->

<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">


<link rel="stylesheet" href="/lib/justified-gallery/css/justifiedGallery.min.css">


    <!-- jquery -->

<script src="/lib/jquery/jquery.min.js"></script>


<script src="/lib/justified-gallery/js/jquery.justifiedGallery.min.js"></script>

<!-- clipboard -->

  
<script src="/lib/clipboard/clipboard.min.js"></script>

  <script type="text/javascript">
  $(function() {
    // copy-btn HTML
    var btn = "<span class=\"btn-copy tooltipped tooltipped-sw\" aria-label=\"Copy to clipboard!\">";
    btn += '<i class="far fa-clone"></i>';
    btn += '</span>'; 
    // mount it!
    $(".highlight table").before(btn);
    var clip = new ClipboardJS('.btn-copy', {
      text: function(trigger) {
        return Array.from(trigger.nextElementSibling.querySelectorAll('.code')).reduce((str,it)=>str+it.innerText+'\n','')
      }
    });
    clip.on('success', function(e) {
      e.trigger.setAttribute('aria-label', "Copied!");
      e.clearSelection();
    })
  })
  </script>


<script src="/js/main.js"></script>

<!-- search -->

<!-- Google Analytics -->

<!-- Baidu Analytics -->

<!-- Disqus Comments -->


</body>
</html>
